package com.sikaryofficial.backend.domain.dto.resp.information;

import com.sikaryofficial.common.core.annotation.LocalDateTimeFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.Date;

/**
 * topic分页列表请求入参
 *
 * @author qinjinyuan
 * @date 2024-04-10
 */
@Getter
@Setter
@ToString
@ApiModel(value = "个人收到的点赞出参", description = "个人收到的点赞出参")
public class ArticleGetLikesDTO {

    @ApiModelProperty(value = "文章ID")
    private Long articleId;

    @ApiModelProperty(value = "文章标题")
    private String headline;

    @ApiModelProperty(value = "点赞人ID")
    private Long createdBy;

    @ApiModelProperty(value = "点赞人用户名")
    private String createdName;

    @ApiModelProperty(value = "昵称")
    private String nickName;

    @LocalDateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "点赞时间")
    private Date createdTime;

    @ApiModelProperty(value = "点赞人头像")
    private String avatar;

    /**
     * 是否有我的点赞
     */
    @ApiModelProperty(value = "是否有我的点赞")
    private boolean hasOwnerLikes;
}
